JBoss Tools SVN: r11741 - in trunk: i18n and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2008-11-12 18:31:18 -0500 (Wed, 12 Nov 2008)
New Revision: 11741
Added:
trunk/i18n/
trunk/i18n/.project
trunk/i18n/build.xml
trunk/i18n/feature-template/
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml
trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html
trunk/i18n/i18n.properties
trunk/i18n/plugin-template.mf
trunk/i18n/po/
trunk/i18n/pom.xml
trunk/i18n/site-template.xml
Log:
Initial import
Property changes on: trunk/i18n
___________________________________________________________________
Name: svn:ignore
+ target
Added: trunk/i18n/.project
===================================================================
--- trunk/i18n/.project (rev 0)
+++ trunk/i18n/.project 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>i18n</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Added: trunk/i18n/build.xml
===================================================================
--- trunk/i18n/build.xml (rev 0)
+++ trunk/i18n/build.xml 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,441 @@
+<?xml version="1.0"?>
+
+<project name="org.jboss.tools.translations" default="debug" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+
+ <path id="jbtdir" path="..">
+ </path>
+ <property name="jbt.srcdir" value="${toString:jbtdir}" />
+
+ <property file="i18n.properties" />
+ <property name="meta.dtd" value="${jbt.srcdir}/common/plugins/org.jboss.tools.common.model/resources/meta/meta.dtd" />
+ <property name="meta.xpath" value="//@displayName | //XModelAttribute/@name | //XModelAttribute/@default | //Constraint/value/@name" />
+
+ <!-- Target locations: -->
+ <property name="target.dir" location="target" />
+ <property name="potdir" value="${target.dir}${file.separator}pot" />
+ <property name="propdir" value="${target.dir}${file.separator}prop" />
+ <property name="jardir" value="${target.dir}${file.separator}jars" />
+ <property name="zipdir" value="${target.dir}${file.separator}zips" />
+
+ <!-- Fetch Maven Ant Tasks jar: -->
+ <!-- 2.0.9 is not yet in the jboss maven repo -->
+ <property name="maven.version" value="2.0.8" />
+ <property name="maven-artifact-ant.bootstrap.jar" location="${target.dir}/lib/maven-ant-tasks-${maven.version}.jar" />
+ <property name="remoteRepo" value="" />
+
+ <target name="-check-get-maven-artifact-ant">
+ <available property="-get-maven-artifact-ant-done" file="${maven-artifact-ant.bootstrap.jar}" />
+ </target>
+
+ <target name="-get-maven-artifact-ant" depends="-check-get-maven-artifact-ant" unless="-get-maven-artifact-ant-done">
+ <mkdir dir="${target.dir}/lib" />
+ <get src="http://repository.jboss.com/maven2/org/apache/maven/maven-ant-tasks/${mav..." dest="${maven-artifact-ant.bootstrap.jar}" />
+ </target>
+
+ <!-- Define the Ant-Contrib and Tennera Ant Gettext tasks, using Maven
+ to resolve dependencies: -->
+ <target name="initTaskDefs" depends="-get-maven-artifact-ant">
+ <path id="maven-ant-tasks.classpath" path="${maven-artifact-ant.bootstrap.jar}" />
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
+
+ <!-- This would be used if we wanted to keep maven's repo out of ${user.home}
+ <artifact:localRepository id="local.repository" path="${basedir}/target/local-repo" layout="default"/>
+
+ <property name="deploy.repository.url" value="${basedir}/target/deployment-repo" />
+ <artifact:remoteRepository id="deploy.repository" url="file://localhost/${deploy.repository.url}" layout="default"/>
+ -->
+
+ <!-- Maven dependencies -->
+ <artifact:pom file="pom.xml" id="maven.project" />
+ <artifact:dependencies pathId="dependency.classpath" useScope="runtime" type="jar">
+ <pom refid="maven.project" />
+ </artifact:dependencies>
+
+ <!-- pick up the "for" task from ant-contrib -->
+ <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="dependency.classpath" />
+
+ <!-- xpath task -->
+ <taskdef resource="net/uworks/andariel/andariel.properties" classpathref="dependency.classpath" />
+
+ <!-- ant-gettext tasks -->
+ <taskdef name="prop2pot" classname="org.fedorahosted.tennera.antgettext.Prop2PotTask" classpathref="dependency.classpath" />
+ <taskdef name="pot2en" classname="org.fedorahosted.tennera.antgettext.Pot2EnTask" classpathref="dependency.classpath" />
+ <taskdef name="po2prop" classname="org.fedorahosted.tennera.antgettext.Po2PropTask" classpathref="dependency.classpath" />
+ <taskdef name="xpath2pot" classname="org.fedorahosted.tennera.antgettext.XPath2PotTask" classpathref="dependency.classpath" />
+ </target>
+
+
+ <target name="init" depends="checkver,initTaskDefs">
+ </target>
+
+ <target name="debug" depends="init">
+ <echo message="jbt.srcdir=${jbt.srcdir}">
+ </echo>
+ <!-- get the source compile classpath in a printable form -->
+ <pathconvert pathsep="${line.separator}| |__ " property="echo.dependency.classpath" refid="dependency.classpath">
+ </pathconvert>
+ <echo message="|__ dependency.classpath path" />
+ <echo message="| |" />
+ <echo message="| |__ ${echo.dependency.classpath}" />
+ <!--
+-->
+ </target>
+
+ <target name="clean" description="Remove generated files">
+ <delete dir="${potdir}" />
+ <delete dir="po/en" />
+ <delete dir="po/qps" />
+ <delete dir="po/en_AA" />
+ <delete dir="${propdir}" />
+ <delete dir="${jardir}" />
+ <delete dir="${zipdir}" />
+ </target>
+
+ <target name="prop2pot" description="Extract translation templates (POT) from the JBoss Tools English properties files" depends="init">
+ <delete dir="${potdir}" />
+ <mkdir dir="${potdir}" />
+ <for param="srcdir">
+ <path>
+ <!-- paths under jbt.srcdir look like: ${module}/plugins/${plugin}/{src,main,...} -->
+ <dirset dir="${jbt.srcdir}" includes="*/plugins/*/*" excludes="${srcexcludes}" />
+ </path>
+ <sequential>
+ <!-- work out srcdir's path relative to the jbosstools source tree
+ -->
+ <propertyregex override="true" property="relativesrcdir"
+ input="@{srcdir}" regexp="^${jbt.srcdir}${file.separator}(.*)" select="\1" />
+ <checkprop propname="relativesrcdir"/>
+ <propertyregex override="true" property="plugin"
+ input="@{srcdir}"
+ regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}plugins${file.separator}([^/\\]+)${file.separator}.*"
+ select="\1" />
+ <checkprop propname="plugin"/>
+ <!--
+ <echo message="extracting strings from @{srcdir} -> ${potdir}/${relativesrcdir}"/>
+-->
+ <prop2pot srcDir="@{srcdir}" dstDir="${potdir}/${relativesrcdir}" />
+ <xpath2pot srcDir="@{srcdir}" target="${potdir}/${relativesrcdir}/${plugin}_meta.pot" includes="**/*.meta" xpath="${meta.xpath}" pathprefix="${relativesrcdir}/">
+ <dtd publicId="-//Red Hat, Inc.//DTD Meta 1.0//EN" location="${meta.dtd}" />
+ </xpath2pot>
+ </sequential>
+ </for>
+ </target>
+
+ <!-- autogenerated "translations" -->
+ <target name="en" depends="init" description="Generate English PO files from POT files">
+ <delete dir="po/en" />
+ <mkdir dir="po/en" />
+ <pot2en srcDir="${potdir}" dstDir="po/en" />
+ </target>
+ <target name="qps" depends="init" description="Generate Pseudo-translation PO files for qps locale from POT files">
+ <delete dir="po/qps" />
+ <mkdir dir="po/qps" />
+ <pot2en srcDir="${potdir}" dstDir="po/qps" pseudo="true" />
+ </target>
+
+ <target name="en_AA" depends="init" description="Generate Pseudo-translation PO files for en_AA locale from POT files">
+ <delete dir="po/en_AA" />
+ <mkdir dir="po/en_AA" />
+ <pot2en srcDir="${potdir}" dstDir="po/en_AA" pseudo="true" />
+ </target>
+
+ <target name="po2prop" depends="init" description="Generate Java properties files from translated PO files">
+ <delete dir="${propdir}" />
+ <mkdir dir="${propdir}" />
+ <!-- for each locale in po/* -->
+ <for param="locale" list="${locales}">
+ <sequential>
+ <po2prop srcDir="po/@{locale}" dstDir="${propdir}/@{locale}" locale="@{locale}" />
+ </sequential>
+ </for>
+ </target>
+
+ <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
+ macrodef: checkprop checks that specified property has been set
+ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
+ <macrodef name="checkprop">
+ <attribute name="propname" />
+ <sequential>
+ <if>
+ <!-- TODO fail on empty value -->
+ <not>
+ <isset property="@{propname}"/>
+ </not>
+ <then>
+ <fail message="property '@{propname}' is not set"/>
+ </then>
+ </if>
+ </sequential>
+ </macrodef>
+
+ <!-- = = = = = = = = = = = = = = = = =
+ macrodef: processplugins
+ = = = = = = = = = = = = = = = = = -->
+ <macrodef name="processplugins">
+ <attribute name="rootdir" />
+ <attribute name="task" />
+ <sequential>
+ <for param="plugindir">
+ <path>
+ <dirset dir="@{rootdir}" includes="*/*/plugins/*">
+ </dirset>
+ </path>
+ <sequential>
+ <propertyregex override="true" property="locale"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}([^/\\]+)${file.separator}.*"
+ select="\1" />
+ <checkprop propname="locale"/>
+ <propertyregex override="true" property="module"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}([^/\\]+).*"
+ select="\1" />
+ <checkprop propname="module"/>
+ <propertyregex override="true" property="plugin"
+ input="@{plugindir}"
+ regexp="^(a){rootdir}${file.separator}[^/\\]+${file.separator}[^/\\]+${file.separator}plugins${file.separator}(.*)"
+ select="\1" />
+ <checkprop propname="plugin"/>
+ <propertycopy override="true" property="localename" from="NAME_${locale}"/>
+ <!--
+ <echo message="@{plugindir} contains ${locale} props for plugin ${plugin} in module ${module}"/>
+ -->
+ <antcall target="@{task}">
+ <param name="plugindir" value="@{plugindir}"/>
+ </antcall>
+ </sequential>
+ </for>
+ </sequential>
+ </macrodef>
+
+ <target name="manifests" depends="init" description="Generate fragment plugin manifests for langpack plugins">
+ <delete dir="${propdir}" includes="*/*/plugins/*/META-INF/MANIFEST.MF"/>
+ <processplugins rootdir="${propdir}" task="manifest" />
+ </target>
+
+ <target name="manifest">
+ <!-- NB don't depend on initTaskDefs here, or ant loads the
+ classes over and over until it exhausts memory -->
+ <checkprop propname="plugindir"/>
+ <checkprop propname="plugin"/>
+ <checkprop propname="locale"/>
+ <checkprop propname="localename"/>
+ <checkprop propname="PLUGIN_VERSION"/>
+ <checkprop propname="PLUGIN_VENDOR"/>
+<!-- TODO specify exact versions of host plugins? -->
+ <copy overwrite="true" file="plugin-template.mf" tofile="${plugindir}/META-INF/MANIFEST.MF">
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ </copy>
+ <!-- only for debugging:
+ <concat><filelist files="${plugindir}/META-INF/MANIFEST.MF"></filelist></concat>
+-->
+ </target>
+
+ <target name="fragments" depends="init" description="Generate fragment plugin jars to contain translations" >
+ <delete dir="${jardir}" />
+ <mkdir dir="${jardir}/plugins" />
+ <processplugins rootdir="${propdir}" task="fragment" />
+ </target>
+
+ <target name="fragment">
+ <!-- NB don't depend on initTaskDefs here, or ant loads the
+ classes over and over until it exhausts memory -->
+ <checkprop propname="plugindir"/>
+ <checkprop propname="plugin"/>
+ <checkprop propname="locale"/>
+ <checkprop propname="localename"/>
+ <checkprop propname="PLUGIN_VERSION"/>
+ <checkprop propname="PLUGIN_VENDOR"/>
+ <property name="jar" value="${jardir}/plugins/${plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
+ <!--
+ <echo message="Jarring up ${jar} from directory ${plugindir}"/>
+-->
+ <!-- we exclude "*" because we only want about.properties and
+ plugin.properties from the top-level -->
+ <jar
+ destfile="${jar}"
+ update="no"
+ basedir="${plugindir}"
+ excludes="*"
+ duplicate="fail"
+ manifest="${plugindir}/META-INF/MANIFEST.MF">
+ <!-- todo consider an inline manifest -->
+ <include name="about.properties"/>
+ <!-- NB features contain feature.properties but all are currently empty -->
+ <include name="plugin.properties"/>
+ <!-- FIXME too many source paths, see https://jira.jboss.org/jira/browse/JBIDE-2972 -->
+ <!-- next two are Maven style, not currently used in JBT:
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main/java"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main/resources"/>
+ -->
+ <fileset erroronmissingdir="false" dir="${plugindir}/src/main" excludes="java,resources"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/src" excludes="main"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/jbosscore"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/jbossui"/>
+ <fileset erroronmissingdir="false" dir="${plugindir}/resources"/>
+ <!-- <fileset dir="${plugindir}/templates"/> -->
+ <fileset erroronmissingdir="false" dir="${plugindir}/template-src"/>
+ <!-- TODO identify and list unincluded directories -->
+ </jar>
+ </target>
+
+ <target name="features" depends="init"
+ description="Generate langpack feature manifests (one per locale) for each JBT feature, and corresponding site.xml">
+ <delete dir="${propdir}/features" />
+ <mkdir dir="${propdir}/features" />
+ <delete dir="${jardir}/features" />
+ <mkdir dir="${jardir}/features" />
+ <var name="temp.file.sitefeatures" unset="true" />
+ <tempfile property="temp.file.sitefeatures" destdir="${target.dir}" prefix="site" suffix=".tmp" createfile="true" deleteonexit="false" />
+ <sequential>
+ <for param="featurexml">
+ <path>
+ <fileset dir="${jbt.srcdir}" includes="*/features/*/feature.xml"/>
+ </path>
+ <sequential>
+ <propertyregex override="true" property="module"
+ input="@{featurexml}"
+ regexp="^${jbt.srcdir}${file.separator}([^/\\]+).*"
+ select="\1" />
+ <checkprop propname="module"/>
+ <propertyregex override="true" property="feature"
+ input="@{featurexml}"
+ regexp="^${jbt.srcdir}${file.separator}[^/\\]+${file.separator}features${file.separator}([^/\\]+)${file.separator}feature.xml"
+ select="\1" />
+ <checkprop propname="feature"/>
+ <var name="featurename" value="${feature}" />
+ <var name="jarsize" value="0" />
+ <echo message="Processing feature ${feature} in module ${module}"/>
+ <for param="locale" list="${locales}">
+ <sequential>
+ <var name="locale" value="@{locale}" />
+ <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
+
+ <xpath
+ file="@{featurexml}"
+ expression="/feature/plugin/@id"
+ delimiter=" "
+ outputproperty="feature.${feature}.plugins"/>
+ <propertycopy override="true" property="plugins" from="feature.${feature}.plugins"/>
+
+
+ <var name="temp.file.featureplugins" unset="true" />
+ <tempfile property="temp.file.featureplugins" destdir="${target.dir}" prefix="plugins" suffix=".tmp" createfile="true" deleteonexit="true" />
+ <for param="plugin" list="${plugins}" delimiter=" ">
+ <sequential>
+ <if>
+ <available file="${jardir}/plugins/(a){plugin}.nl-${locale}_${PLUGIN_VERSION}.jar" />
+ <then>
+ <echo append="true" file="${temp.file.featureplugins}"
+ message="<plugin
+ id="(a){plugin}.nl-${locale}"
+ fragment="true" unpack="false"
+ version="${PLUGIN_VERSION}" />" />
+ </then>
+ </if>
+ </sequential>
+ </for>
+ <var name="plugins" unset="true" />
+ <loadfile property="plugins" srcFile="${temp.file.featureplugins}"/>
+ <delete file="${temp.file.featureplugins}"/>
+
+
+ <echo append="true" file="${temp.file.sitefeatures}"
+ message="<feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
+ <category name="JBoss Tools Localization (${localename})"/>
+ </feature>" />
+ <!--
+ <feature url="features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ id="${feature}.nl-@{locale}" version="${PLUGIN_VERSION}">
+ <category name="JBoss Tools Localization"/>
+ </feature>
+ -->
+
+
+
+ <!-- TODO download-size="${jarsize}" install-size="${jarsize}" -->
+ <copy overwrite="true"
+ todir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}">
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ <!-- TODO rename to FEATURE.nl-LOCALE_VERSION -->
+ <fileset dir="feature-template/org.jboss.tools.nl-LOCALE_VERSION" />
+ <!--
+ features/org.*.nl-${locale}_${PLUGIN_VERSION}/
+ license.html
+ feature.properties
+ feature.xml
+ -->
+ </copy>
+ <jar destfile="${jardir}/features/${feature}.nl-(a){locale}_${PLUGIN_VERSION}.jar"
+ basedir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
+<!--
+ <delete dir="${propdir}/features/${feature}.nl-@{locale}_${PLUGIN_VERSION}" />
+-->
+ </sequential>
+ </for>
+ </sequential>
+ </for>
+ </sequential>
+ <for param="locale" list="${locales}">
+ <sequential>
+ <propertycopy override="true" property="localename" from="NAME_@{locale}"/>
+ <echo append="true" file="${temp.file.sitefeatures}"
+ message="<category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>" />
+ </sequential>
+ </for>
+
+ <!--
+ <category-def name="JBoss Tools Localization (${localename})" label="JBoss Tools Localization (${localename})"/>
+ -->
+
+
+ <var name="features" unset="true" />
+ <loadfile property="features" srcFile="${temp.file.sitefeatures}"/>
+ <!--
+ <delete file="${temp.file.sitefeatures}"/>
+ -->
+
+ <copy overwrite="true" tofile="${jardir}/site.xml" file="site-template.xml">
+ <filterchain>
+ <expandproperties/>
+ </filterchain>
+ </copy>
+ </target>
+
+ <target name="zips" depends="init">
+ <delete dir="${zipdir}" />
+ <mkdir dir="${zipdir}" />
+ <for param="locale" list="${locales}">
+ <sequential>
+ <zip
+ destfile="${zipdir}/jbosstools-nls-(a){locale}_${LANGPACK_VERSION}.zip"
+ compress="false"
+ whenempty="fail"
+ basedir="${jardir}" >
+ <include name="plugins/*.nl-(a){locale}_${PLUGIN_VERSION}.jar" />
+ <include name="features/*.nl-(a){locale}_${PLUGIN_VERSION}.jar/" />
+ <!--
+ -->
+ </zip>
+ </sequential>
+ </for>
+ </target>
+
+ <target name="all" depends="clean, prop2pot, en, qps, en_AA, po2prop, manifests, fragments, features, zips"
+ description="Runs all targets in an appropriate order"/>
+
+
+ <!-- Test for a class from Ant 1.7.1 (needed for the jar task's erroronmissingdir feature -->
+ <available property="Ant-1.7.1-or-later"
+ classname="org.apache.tools.ant.input.SecureInputHandler"/>
+
+ <target name="checkver" unless="Ant-1.7.1-or-later">
+ <fail message="Incorrect version of ant: ${ant.version} but required: 1.7.1"/>
+ </target>
+
+</project>
Added: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties (rev 0)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.properties 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,13 @@
+providerName=JBoss
+
+copyright=\
+\n\
+\n
+################ end of copyright property ####################################
+
+licenseURL=license.html
+
+license=\
+TBD\n\
+\n
+########### end of license property ##########################################
Added: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml (rev 0)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/feature.xml 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<feature
+ id="${feature}.nl-${locale}"
+ label="JBoss Tools Language Pack for ${featurename} in ${localename}"
+ provider-name="%providerName"
+ version="${PLUGIN_VERSION}">
+ <copyright>
+ %copyright
+ </copyright>
+ <license url="%licenseURL">
+ %license
+ </license>
+ <description>JBoss Tools Language Pack for ${featurename} in ${localename}</description>
+ <url>
+ <update label="JBossTools Update Site" url="http://download.jboss.org/jbosstools/updates/stable"/>
+ <discovery label="JBossTools Development Update Site" url="http://download.jboss.org/updates/development"/>
+ </url>
+ <requires>
+ <import feature="${feature}" />
+ </requires>
+ ${plugins}
+</feature>
Added: trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html
===================================================================
--- trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html (rev 0)
+++ trunk/i18n/feature-template/org.jboss.tools.nl-LOCALE_VERSION/license.html 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>TBD</title>
+</head>
+
+<body>
+TBD
+</body>
+</html>
Added: trunk/i18n/i18n.properties
===================================================================
--- trunk/i18n/i18n.properties (rev 0)
+++ trunk/i18n/i18n.properties 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,38 @@
+# This is the list of locales which will be packaged as plugins
+# (assuming their po directories exist).
+# Please separate locale IDs with commas (",") and no spaces.
+#
+#locales: en,qps,zh_CN,pt_BR,es_ES,fr_FR,de_DE
+locales: en,en_AA,qps
+
+#we don't care about .properties/.meta in these places:
+srcexcludes=\
+*/plugins/*/.settings,\
+*/plugins/*/bin,\
+*/plugins/*/build,\
+*/plugins/*/dtd,\
+*/plugins/*/dtds,\
+*/plugins/*/dtdsAndSchemas,\
+*/plugins/*/icons,\
+*/plugins/*/images,\
+*/plugins/*/lib,\
+*/plugins/*/libsrc,\
+*/plugins/*/META-INF,\
+*/plugins/*/template-src,\
+*/plugins/*/meta,\
+*/plugins/*/schema,\
+*/plugins/*/schemas,\
+*/plugins/*/target
+#*/plugins/*/templates
+
+BUILD_NUMBER=0
+PLUGIN_VERSION=0.1.${BUILD_NUMBER}
+LANGPACK_VERSION=${PLUGIN_VERSION}
+PLUGIN_VENDOR=JBoss
+WORK=${basedir}
+FRAGDIR=${WORK}/prop
+JARDIR=${WORK}/plugins
+
+NAME_en=English
+NAME_qps=Pseudo Locale (qps)
+NAME_en_AA=Pseudo Locale (en_AA)
Added: trunk/i18n/plugin-template.mf
===================================================================
--- trunk/i18n/plugin-template.mf (rev 0)
+++ trunk/i18n/plugin-template.mf 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Created-By: JBoss Tools localization build.xml
+Bundle-Name: ${plugin} ${localename} NLS Support
+Bundle-SymbolicName: ${plugin}.nl_${locale} ;singleton=true
+Bundle-Version: ${PLUGIN_VERSION}
+Bundle-Vendor: ${PLUGIN_VENDOR}
+Fragment-Host: ${plugin};bundle-version="[0.0.0,9.9.9)"
Added: trunk/i18n/pom.xml
===================================================================
--- trunk/i18n/pom.xml (rev 0)
+++ trunk/i18n/pom.xml 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,44 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>null</groupId>
+ <artifactId>null</artifactId>
+ <version>0</version>
+
+ <repositories>
+ <repository>
+ <name>fhosted.tennera.svn</name>
+ <id>fhosted.tennera.svn</id>
+ <url>http://svn.fedorahosted.org/svn/tennera/m2repo</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <name>hirosnap</name>
+ <id>hiro.m2snap</id>
+ <url>http://hiro.bne.redhat.com:/maven2/snapshot/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.fedorahosted.tennera</groupId>
+ <artifactId>ant-gettext</artifactId>
+ <version>0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>ant-contrib</groupId>
+ <artifactId>ant-contrib</artifactId>
+ <!-- 1.0b3 is not in the central/jboss maven repos -->
+ <version>1.0b2</version>
+ </dependency>
+ <dependency>
+ <groupId>net.uworks</groupId>
+ <artifactId>andariel</artifactId>
+ <version>1.2.3</version>
+ </dependency>
+ </dependencies>
+</project>
Added: trunk/i18n/site-template.xml
===================================================================
--- trunk/i18n/site-template.xml (rev 0)
+++ trunk/i18n/site-template.xml 2008-11-12 23:31:18 UTC (rev 11741)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <description url="http://www.jboss.org/tools">
+ This is the development update site for JBoss Tools Localization. You will find the latest development release of JBossTools here.
+ </description>
+ ${features}
+</site>
17 years, 5 months
JBoss Tools SVN: r11740 - workspace/snjeza/portlet-examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-12 18:06:15 -0500 (Wed, 12 Nov 2008)
New Revision: 11740
Added:
workspace/snjeza/portlet-examples/testjavaportlet.zip
workspace/snjeza/portlet-examples/testjsfportlet.zip
workspace/snjeza/portlet-examples/testseamportlet.zip
Log:
JBIDE-3166 Project examples names
Added: workspace/snjeza/portlet-examples/testjavaportlet.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/portlet-examples/testjavaportlet.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/portlet-examples/testjsfportlet.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/portlet-examples/testjsfportlet.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/portlet-examples/testseamportlet.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/portlet-examples/testseamportlet.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 5 months
JBoss Tools SVN: r11739 - workspace/snjeza/portlet-examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-12 17:36:45 -0500 (Wed, 12 Nov 2008)
New Revision: 11739
Removed:
workspace/snjeza/portlet-examples/TestJSFPortlet.zip
workspace/snjeza/portlet-examples/TestJavaPortlet.zip
workspace/snjeza/portlet-examples/TestSeamPortlet.zip
Log:
JBIDE-3166 Project examples names
Deleted: workspace/snjeza/portlet-examples/TestJSFPortlet.zip
===================================================================
(Binary files differ)
Deleted: workspace/snjeza/portlet-examples/TestJavaPortlet.zip
===================================================================
(Binary files differ)
Deleted: workspace/snjeza/portlet-examples/TestSeamPortlet.zip
===================================================================
(Binary files differ)
17 years, 5 months
JBoss Tools SVN: r11737 - trunk/seam/plugins/org.jboss.tools.seam.text.ext.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-11-12 16:06:47 -0500 (Wed, 12 Nov 2008)
New Revision: 11737
Modified:
trunk/seam/plugins/org.jboss.tools.seam.text.ext/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3159 Fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.text.ext/plugin.xml 2008-11-12 19:43:00 UTC (rev 11736)
+++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/plugin.xml 2008-11-12 21:06:47 UTC (rev 11737)
@@ -7,7 +7,99 @@
id="org.jboss.tools.seam.text.ext.hyperlinkPartitioner"
name="org.jboss.tools.seam.text.ext.hyperlinkPartitioner">
+ <hyperlinkPartitioner
+ class="org.jboss.tools.common.text.ext.hyperlink.xml.XMLRootHyperlinkPartitioner"
+ id="org.jboss.tools.common.text.ext.hyperlink.xml.XMLRootHyperlinkPartitioner">
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
+ </contentType>
+ </hyperlinkPartitioner>
+
<hyperlinkPartitioner
+ class="org.jboss.tools.common.text.ext.hyperlink.xml.XMLTextHyperlinkPartitioner"
+ id="org.jboss.tools.common.text.ext.hyperlink.xml.XMLTextHyperlinkPartitioner">
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
+ class="org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementHyperlinkPartitioner"
+ id="org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementHyperlinkPartitioner">
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ROOT"/>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
+ class="org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementAttributeValueHyperlinkPartitioner"
+ id="org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementAttributeValueHyperlinkPartitioner">
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ELEMENT"/>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
id="org.jboss.tools.seam.text.ext.hyperlink.SeamBeanHyperlinkPartitioner"
class="org.jboss.tools.seam.text.ext.hyperlink.SeamBeanHyperlinkPartitioner">
<contentType id="org.eclipse.jst.jsp.core.jspsource">
@@ -22,7 +114,26 @@
<contentType id="org.jboss.tools.common.model.ui.xml">
<partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION" />
</contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_EXPRESSION"/>
+ </contentType>
</hyperlinkPartitioner>
+
<hyperlinkPartitioner
id="org.jboss.tools.common.text.ext.jsf.hyperlink.JSPExprHyperlinkPartitioner1"
class="org.jboss.tools.jsf.text.ext.hyperlink.JSPExprHyperlinkPartitioner">
@@ -35,6 +146,30 @@
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
</contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
+ <contentType id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE" />
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_TEXT" />
+ </contentType>
</hyperlinkPartitioner>
<hyperlinkPartitioner
@@ -76,6 +211,24 @@
<contenttypeidentifier id="org.jboss.tools.common.model.ui.xml">
<partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
</contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitiontype id="org.jboss.tools.seam.text.ext.SEAM_BEAN" />
+ </contenttypeidentifier>
</hyperlink>
<hyperlink
17 years, 5 months
JBoss Tools SVN: r11736 - trunk/seam/plugins/org.jboss.tools.seam.ui.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-11-12 14:43:00 -0500 (Wed, 12 Nov 2008)
New Revision: 11736
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3158 Fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2008-11-12 18:52:42 UTC (rev 11735)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2008-11-12 19:43:00 UTC (rev 11736)
@@ -343,7 +343,6 @@
<contentAssistProcessor
class="org.jboss.tools.seam.ui.text.java.SeamELProposalProcessor"
id="org.jboss.tools.seam.ui.text.java.SeamELProposalProcessor">
-
<contenttype id="org.eclipse.jst.jsp.core.jspsource">
<partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
<partitiontype id="org.eclipse.wst.html.HTML_DEFAULT" />
@@ -368,7 +367,25 @@
<contenttype id="org.jboss.tools.common.model.ui.xml">
<partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
</contenttype>
-
+
+ <contenttype id="org.jboss.tools.seam.xml.ui.pages12xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
+ <contenttype id="org.jboss.tools.seam.xml.ui.page12xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
+ <contenttype id="org.jboss.tools.seam.xml.ui.pages20xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
+ <contenttype id="org.jboss.tools.seam.xml.ui.page20xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
+ <contenttype id="org.jboss.tools.seam.xml.ui.pages21xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
+ <contenttype id="org.jboss.tools.seam.xml.ui.page21xmlsource">
+ <partitiontype id="org.eclipse.wst.xml.XML_DEFAULT" />
+ </contenttype>
</contentAssistProcessor>
</extension>
17 years, 5 months
JBoss Tools SVN: r11735 - trunk.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-12 13:52:42 -0500 (Wed, 12 Nov 2008)
New Revision: 11735
Removed:
trunk/xslt/
Log:
17 years, 5 months
JBoss Tools SVN: r11734 - trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-11-12 13:47:40 -0500 (Wed, 12 Nov 2008)
New Revision: 11734
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java
Log:
JBIDE-3180
Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java 2008-11-12 18:42:15 UTC (rev 11733)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java 2008-11-12 18:47:40 UTC (rev 11734)
@@ -77,16 +77,26 @@
}
public void fillContextMenu(IMenuManager menu) {
- if( selected.length == 1 && selected[0] instanceof ServerWrapper ) {
- menu.add(createFilter);
- }else if( selected.length == 1 && selected[0] instanceof Fileset ) {
- menu.add(deleteFilter);
- menu.add(editFilter);
- } else if( allPathWrappers(selected) ) {
- editFileAction.setEnabled(canEdit(selected));
- deleteFileAction.setEnabled(canDelete(selected));
- menu.add(editFileAction);
- menu.add(deleteFileAction);
+ ICommonViewerSite site = actionSite.getViewSite();
+ IStructuredSelection selection = null;
+ if (site instanceof ICommonViewerWorkbenchSite) {
+ ICommonViewerWorkbenchSite wsSite = (ICommonViewerWorkbenchSite) site;
+ selection = (IStructuredSelection) wsSite.getSelectionProvider()
+ .getSelection();
+ selected = selection.toArray();
+ if( selected == null )
+ return;
+ if( selected.length == 1 && selected[0] instanceof ServerWrapper ) {
+ menu.add(createFilter);
+ }else if( selected.length == 1 && selected[0] instanceof Fileset ) {
+ menu.add(deleteFilter);
+ menu.add(editFilter);
+ } else if( allPathWrappers(selected) ) {
+ editFileAction.setEnabled(canEdit(selected));
+ deleteFileAction.setEnabled(canDelete(selected));
+ menu.add(editFileAction);
+ menu.add(deleteFileAction);
+ }
}
}
17 years, 5 months
JBoss Tools SVN: r11733 - trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-11-12 13:42:15 -0500 (Wed, 12 Nov 2008)
New Revision: 11733
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java
Log:
JBIDE-3180
Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java 2008-11-12 18:30:30 UTC (rev 11732)
+++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetActionProvider.java 2008-11-12 18:42:15 UTC (rev 11733)
@@ -77,7 +77,7 @@
}
public void fillContextMenu(IMenuManager menu) {
- if( selected[0] instanceof ServerWrapper ) {
+ if( selected.length == 1 && selected[0] instanceof ServerWrapper ) {
menu.add(createFilter);
}else if( selected.length == 1 && selected[0] instanceof Fileset ) {
menu.add(deleteFilter);
17 years, 5 months
JBoss Tools SVN: r11732 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-12 13:30:30 -0500 (Wed, 12 Nov 2008)
New Revision: 11732
Removed:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/messages.properties
Log:
Deleted: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/messages.properties 2008-11-12 18:27:04 UTC (rev 11731)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/messages.properties 2008-11-12 18:30:30 UTC (rev 11732)
@@ -1,2 +0,0 @@
-not_a_file= Resource \"{0}\" is not a file.
-file_not_found = File \"{0}\" not found.
\ No newline at end of file
17 years, 5 months