JBoss Tools SVN: r2057 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core: project and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-22 10:54:49 -0400 (Tue, 22 May 2007)
New Revision: 2057
Added:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesBuilder.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesNature.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ProjectUtils.java
Log:
more refactoring from src/main to src/eclipse
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesBuilder.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesBuilder.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesBuilder.java 2007-05-22 14:54:49 UTC (rev 2057)
@@ -0,0 +1,179 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.archives.core.project;
+
+import java.util.Comparator;
+import java.util.Map;
+import java.util.TreeSet;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceDelta;
+import org.eclipse.core.resources.IResourceDeltaVisitor;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.jboss.ide.eclipse.archives.core.ArchivesCore;
+import org.jboss.ide.eclipse.archives.core.build.ArchiveBuildDelegate;
+import org.jboss.ide.eclipse.archives.core.model.ArchivesModel;
+import org.jboss.ide.eclipse.archives.core.model.IArchive;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveFileSet;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveModelNode;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveNode;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveNodeVisitor;
+import org.jboss.ide.eclipse.archives.core.util.internal.TrueZipUtil;
+
+/**
+ * This builder is responsible for building the archives
+ * It delegates to a delegate.
+ * @author Rob Stryker (rob.stryker(a)redhat.com)
+ *
+ */
+public class ArchivesBuilder extends IncrementalProjectBuilder {
+
+ public static final String BUILDER_ID = "org.jboss.ide.eclipse.archives.core.archivesBuilder";
+
+ /**
+ * Build.
+ * @see IncrementalProjectBuilder#build(int, Map, IProgressMonitor)
+ * @see IProject#build(int, String, Map, IProgressMonitor)
+ */
+ protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
+
+ // if we're not to build, get out of here
+ if( !ArchivesCore.getInstance().getPreferenceManager().isBuilderEnabled(getProject().getLocation()))
+ return new IProject[]{};
+
+ IProject[] interestingProjects = getInterestingProjectsInternal();
+
+ final TreeSet addedChanged = createDefaultTreeSet();
+ final TreeSet removed = createDefaultTreeSet();
+
+ ArchiveBuildDelegate delegate = new ArchiveBuildDelegate();
+ if (kind == IncrementalProjectBuilder.INCREMENTAL_BUILD || kind == IncrementalProjectBuilder.AUTO_BUILD) {
+ fillDeltas(interestingProjects, addedChanged, removed);
+ delegate.projectIncrementalBuild(addedChanged, removed);
+
+ } else if (kind == IncrementalProjectBuilder.FULL_BUILD){
+ // build each package fully
+ IProject p = getProject();
+ delegate.fullProjectBuild(p.getLocation());
+ }
+
+ return interestingProjects;
+ }
+
+ /**
+ * Delete all archives that were created or represented by this
+ * project's archive model.
+ */
+ protected void clean(IProgressMonitor monitor) throws CoreException {
+ IPath p = getProject().getLocation();
+ IArchiveModelNode root = ArchivesModel.instance().getRoot(p);
+ IArchiveNode[] nodes = root.getChildren(IArchiveNode.TYPE_ARCHIVE);
+ for( int i = 0; i < nodes.length; i++ ) {
+ IPath path = ((IArchive)nodes[i]).getDestinationPath();
+ TrueZipUtil.deleteAll(path);
+ }
+ }
+
+ /**
+ * Browse through the deltas and fill the treesets with
+ * affected resources.
+ * @param projects The interesting projects
+ * @param addedChanged A collection of resources that have been added or changed
+ * @param removed A collection of resources that have been removed.
+ */
+ protected void fillDeltas(IProject[] projects, final TreeSet addedChanged, final TreeSet removed) {
+ for( int i = 0; i < projects.length; i++ ) {
+ final IProject proj = projects[i];
+ IResourceDelta delta = getDelta(proj);
+ try {
+ delta.accept(new IResourceDeltaVisitor () {
+ public boolean visit(IResourceDelta delta) throws CoreException {
+ if (delta.getResource().getType() == IResource.FILE) {
+ if( (delta.getKind() & IResourceDelta.ADDED) > 0
+ || (delta.getKind() & IResourceDelta.CHANGED) > 0) {
+
+ // ignore the packages project. that will it's own build call,
+ // or will handle the change in some other way
+ if( !delta.getResource().equals(proj.findMember(ArchivesModel.PROJECT_PACKAGES_FILE)))
+ addedChanged.add(delta.getResource().getLocation());
+ } else if( (delta.getKind() & IResourceDelta.REMOVED ) > 0 ) {
+ removed.add(delta.getResource().getLocation());
+ }
+ }
+ return true;
+ }
+ });
+ } catch( CoreException ce) {
+
+ }
+ }
+ }
+
+ /**
+ * Get any projects that the current project may depend on
+ * (regarding it's archive model, if any filesets match files in
+ * another project).
+ * @return The list of projects that matter
+ */
+ protected IProject[] getInterestingProjectsInternal() {
+ final TreeSet set = createDefaultTreeSet();
+ set.add(getProject());
+
+ final IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
+ final int count = workspaceRoot.getLocation().segmentCount();
+
+ ArchivesModel.instance().getRoot(getProject().getLocation()).accept(new IArchiveNodeVisitor () {
+ public boolean visit (IArchiveNode node) {
+ if (node.getNodeType() == IArchiveNode.TYPE_ARCHIVE_FILESET) {
+ IArchiveFileSet fileset = (IArchiveFileSet)node;
+ IPath p = fileset.getGlobalSourcePath();
+ if( workspaceRoot.getLocation().isPrefixOf(p)) {
+ IProject proj = workspaceRoot.getProject(p.segment(count));
+ set.add(proj);
+ }
+ }
+ return true;
+ }
+ });
+ return (IProject[]) set.toArray(new IProject[set.size()]);
+ }
+
+ /**
+ * Default treeset with default comparator
+ * @return
+ */
+ protected TreeSet createDefaultTreeSet() {
+ return new TreeSet(new Comparator () {
+ public int compare(Object o1, Object o2) {
+ if (o1.equals(o2)) return 0;
+ else return -1;
+ }
+ });
+ }
+
+}
\ No newline at end of file
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesNature.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesNature.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ArchivesNature.java 2007-05-22 14:54:49 UTC (rev 2057)
@@ -0,0 +1,120 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.archives.core.project;
+
+import java.util.ArrayList;
+
+import org.eclipse.core.resources.ICommand;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IProjectNature;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
+
+/**
+ * The nature associated with archives, specifically
+ * the builder is added or removed based on this nature.
+ *
+ * @author Rob Stryker (rob.stryker(a)redhat.com)
+ *
+ */
+public class ArchivesNature implements IProjectNature {
+
+ public static final String NATURE_ID = "org.jboss.ide.eclipse.archives.core.archivesNature";
+
+ private IProject project;
+
+ public void configure() throws CoreException {
+ addProjectBuilder(project, ArchivesBuilder.BUILDER_ID);
+ }
+
+ public void deconfigure() throws CoreException {
+ removeProjectBuilder(project, ArchivesBuilder.BUILDER_ID);
+ }
+
+ public IProject getProject() {
+ return project;
+ }
+
+ public void setProject(IProject project) {
+ this.project = project;
+ }
+
+ public static boolean addProjectBuilder(IProject project, String builderId)
+ {
+ try
+ {
+ IProjectDescription desc = project.getDescription();
+ ICommand[] commands = desc.getBuildSpec();
+
+ //add builders to project
+ ICommand builderCommand = desc.newCommand();
+ builderCommand.setBuilderName(builderId);
+
+ ICommand[] newCommands = new ICommand[commands.length + 1];
+ System.arraycopy(commands, 0, newCommands, 0, commands.length);
+ newCommands[newCommands.length - 1] = builderCommand;
+
+ desc.setBuildSpec(newCommands);
+
+ project.setDescription(desc, new NullProgressMonitor());
+ }
+ catch (CoreException e)
+ {
+ e.printStackTrace();
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Removes a specific builder from the end of a given project's builder list.
+ * @param project
+ * @param builderId
+ * @return Whether or not the builder was successfully removed
+ */
+ public static boolean removeProjectBuilder(IProject project, String builderId) {
+ try {
+ IProjectDescription desc = project.getDescription();
+ ICommand[] commands = desc.getBuildSpec();
+ ArrayList newCommands = new ArrayList();
+
+ for (int i = 0; i < commands.length; i++) {
+ if (!commands[i].getBuilderName().equals(builderId)) {
+ newCommands.add(commands[i]);
+ }
+ }
+
+ desc.setBuildSpec((ICommand[]) newCommands.toArray(new ICommand[newCommands.size()]));
+
+ project.setDescription(desc, new NullProgressMonitor());
+ } catch (CoreException e) {
+ e.printStackTrace();
+ return false;
+ }
+
+ return true;
+ }
+
+
+}
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ProjectUtils.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ProjectUtils.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/project/ProjectUtils.java 2007-05-22 14:54:49 UTC (rev 2057)
@@ -0,0 +1,46 @@
+package org.jboss.ide.eclipse.archives.core.project;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+
+public class ProjectUtils {
+
+ public static boolean addProjectNature(IPath path) {
+ String loc = ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString();
+ if( path.toOSString().startsWith(loc)) {
+ String proj = path.toOSString().substring(loc.length()+1);
+ IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(proj);
+ return addProjectNature(p, ArchivesNature.NATURE_ID);
+ }
+ return false;
+ }
+
+ public static boolean addProjectNature(IProject project, String natureId) {
+ boolean added = false;
+ try {
+ if (project != null && natureId != null) {
+ IProjectDescription desc = project.getDescription();
+
+ if (!project.hasNature(natureId)) {
+ String natureIds[] = desc.getNatureIds();
+ String newNatureIds[] = new String[natureIds.length + 1];
+
+ System.arraycopy(natureIds, 0, newNatureIds, 1, natureIds.length);
+ newNatureIds[0] = natureId;
+ desc.setNatureIds(newNatureIds);
+
+ project.getProject().setDescription(desc, new NullProgressMonitor());
+ added = true;
+ }
+ }
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ return added;
+ }
+
+}
17 years, 7 months
JBoss Tools SVN: r2056 - trunk/documentation/GettingStartedGuide/docs/userguide/en/images.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-05-22 10:46:24 -0400 (Tue, 22 May 2007)
New Revision: 2056
Added:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor2.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Diagram.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RHDSpalette.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/arrow.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/connection.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/install.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/pev.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/run.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/running.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strgreeting.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strinputname.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual2.png
Log:
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Diagram.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Diagram.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RHDSpalette.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RHDSpalette.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/arrow.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/arrow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/connection.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/connection.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/install.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/install.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/pev.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/pev.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/run.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/run.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/running.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/running.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strgreeting.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strgreeting.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strinputname.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strinputname.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 7 months
JBoss Tools SVN: r2055 - trunk/documentation/GettingStartedGuide/docs/userguide/en/images.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-05-22 10:42:42 -0400 (Tue, 22 May 2007)
New Revision: 2055
Removed:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ActionHandler.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/AntBuild.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ArrowButton.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ChangingStatusField.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor2.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConnectionsView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConsolePanel.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConsoleView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/CreatedProject.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/CreatingNewFileResource.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DataFields.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DeletingSelectedMarkup.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Diagram.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DiagramView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EclipseConProjectStructure.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EditPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/FaceletDesigner.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/FillingItems.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/GeneratedEditPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/GraphicalProcessDesigner.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HQLDesignerView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateConfigurationsView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateDynamicSQLPreview.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateEntities.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateQueryResultWindow.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ImportDirectory.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/InputNumberSliderSettings.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/InvokingProcessOrder.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Metadata.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NewRulesFile.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NoButtons.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NodeEntering.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OfficeEditPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderDetails.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderEditPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderedList.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OutlineView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OutputPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ProjectImporting.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ProjectStructure.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/PropertyView.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RHDSpalette.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ReplacingTags.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SeamGenSetup.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SearchPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SearchPanel.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/StoppingServer.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ValidationInEditPage.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/arrow.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/connection.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/install.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/pev.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/run.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/running.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strgreeting.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strinputname.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual2.png
Log:
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ActionHandler.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/AntBuild.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ArrowButton.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ChangingStatusField.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConfigEditor2.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConnectionsView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConsolePanel.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ConsoleView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/CreatedProject.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/CreatingNewFileResource.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DataFields.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DeletingSelectedMarkup.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Diagram.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/DiagramView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EclipseConProjectStructure.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/FaceletDesigner.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/FillingItems.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/GeneratedEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/GraphicalProcessDesigner.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HQLDesignerView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateConfigurationsView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateDynamicSQLPreview.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateEntities.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/HibernateQueryResultWindow.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ImportDirectory.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/InputNumberSliderSettings.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/InvokingProcessOrder.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/Metadata.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NewRulesFile.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NoButtons.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/NodeEntering.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OfficeEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderDetails.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OrderedList.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OutlineView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/OutputPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ProjectImporting.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ProjectStructure.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/PropertyView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RHDSpalette.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ReplacingTags.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SeamGenSetup.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SearchPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/SearchPanel.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/StoppingServer.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ValidationInEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/arrow.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/connection.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/install.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/pev.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/run.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/running.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strgreeting.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/strinputname.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/visual2.png
===================================================================
(Binary files differ)
17 years, 7 months
JBoss Tools SVN: r2054 - trunk/documentation/GettingStartedGuide/docs/userguide/en/images.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-05-22 08:51:53 -0400 (Tue, 22 May 2007)
New Revision: 2054
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
Log:
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/RH_Palette.png
===================================================================
(Binary files differ)
17 years, 7 months
JBoss Tools SVN: r2053 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:59:20 -0400 (Mon, 21 May 2007)
New Revision: 2053
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/.classpath
Log:
added src/xml and src/eclipse source paths
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/.classpath
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/.classpath 2007-05-21 23:57:09 UTC (rev 2052)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/.classpath 2007-05-21 23:59:20 UTC (rev 2053)
@@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main"/>
+ <classpathentry kind="src" path="src/xml"/>
+ <classpathentry kind="src" path="src/eclipse"/>
+ <classpathentry exported="true" kind="lib" path="lib/concurrent.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/truezip-6.jar" sourcepath="C:/code/truezip/truezip-6/src"/>
+ <classpathentry exported="true" kind="lib" path="lib/xercesImpl.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jboss-common-4.0.4.jar" sourcepath="C:/Users/Marshall/Downloads/jbossxb-1.0.1.TEST-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jbossxb-1.0.1.TEST.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/xercesImpl.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/concurrent.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/truezip-6.jar" sourcepath="C:/code/truezip/truezip-6/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
17 years, 7 months
JBoss Tools SVN: r2052 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core: build and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:57:09 -0400 (Mon, 21 May 2007)
New Revision: 2052
Removed:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceExtensionManager.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVariables.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/JARArchiveType.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/project/
Log:
all code with references to org.eclipse.core.resources (anything other than
.runtime) has been moved into src/eclipse
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/ArchivesCorePlugin.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,76 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ide.eclipse.archives.core;
-
-import org.eclipse.core.runtime.Plugin;
-import org.jboss.ide.eclipse.archives.core.model.internal.xb.XMLBinding;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- * @author rstryker
- *
- */public class ArchivesCorePlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.ide.eclipse.archives.core";
-
- // The shared instance
- private static ArchivesCorePlugin plugin;
-
- /**
- * The constructor
- */
- public ArchivesCorePlugin() {
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
-
- // force JBossXB initialization
- XMLBinding.init();
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static ArchivesCorePlugin getDefault() {
- return plugin;
- }
-
-}
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,207 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ide.eclipse.archives.core.build;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.jboss.ide.eclipse.archives.core.ArchivesCore;
-import org.jboss.ide.eclipse.archives.core.model.IArchive;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveFileSet;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveFolder;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveNode;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveNodeDelta;
-import org.jboss.ide.eclipse.archives.core.model.events.EventManager;
-import org.jboss.ide.eclipse.archives.core.model.other.IArchiveModelListener;
-import org.jboss.ide.eclipse.archives.core.util.ModelUtil;
-import org.jboss.ide.eclipse.archives.core.util.internal.ModelTruezipBridge;
-
-/**
- * This class responds to model change events.
- * It is given a delta as to what nodes are added, removed, or changed.
- * It then keeps the output file for the top level archive in sync with
- * the changes to the model.
- *
- * If the automatic builder is not enabled for this project, the listener
- * does nothing.
- *
- * @author Rob Stryker (rob.stryker(a)redhat.com)
- *
- */
-public class ModelChangeListener implements IArchiveModelListener {
-
- /**
- * This is the entry point for model change events.
- * It immediately passes the delta to be handled.
- */
- public void modelChanged(IArchiveNodeDelta delta) {
- // if we're not building, get out
- if( !ArchivesCore.getInstance().getPreferenceManager().isBuilderEnabled(delta.getPostNode().getProjectPath()))
- return;
-
- try {
- handle(delta);
- } catch( Exception e ) {
- e.printStackTrace();
- }
- }
-
- /**
- * This can handle any type of node / delta, not just
- * root elements. If the node is added or removed, it
- * will handle those segments and return without checking
- * the children at all. IT is the responsibility of the add
- * and remove methods to go through the children.
- *
- * Otherwise, it will simply handle attribute children and then
- * move on to the children.
- *
- * @param delta
- */
- private void handle(IArchiveNodeDelta delta) {
- if( (delta.getKind() & IArchiveNodeDelta.REMOVED) != 0 ) {
- nodeRemoved(delta.getPreNode());
- return;
- } else if( (delta.getKind() & IArchiveNodeDelta.ADDED) != 0 ) {
- nodeAdded(delta.getPostNode());
- return;
- } else if( (delta.getKind() & IArchiveNodeDelta.ATTRIBUTE_CHANGED) != 0) {
- boolean shouldHandleChildren = handleAttributeChange(delta);
- if( shouldHandleChildren ) {
- IArchiveNodeDelta[] children = delta.getAllAffectedChildren();
- for( int i = 0; i < children.length; i++ ) {
- handle(children[i]);
- }
- }
- } else if( descendentChanged(delta.getKind()) ) {
- IArchiveNodeDelta[] children = delta.getAllAffectedChildren();
- for( int i = 0; i < children.length; i++ ) {
- handle(children[i]);
- }
- }
- }
- protected boolean descendentChanged(int kind) {
- return (kind & IArchiveNodeDelta.DESCENDENT_CHANGED) != 0 ||
- (kind & IArchiveNodeDelta.CHILD_ADDED) != 0 ||
- (kind & IArchiveNodeDelta.CHILD_REMOVED) != 0;
- }
-
- /**
- * Handle changes in this node
- * @param delta
- * @return Whether or not the caller should also handle the children
- */
- private boolean handleAttributeChange(IArchiveNodeDelta delta) {
- switch( delta.getPostNode().getNodeType()) {
- case IArchiveNode.TYPE_ARCHIVE_FOLDER:
- return handleFolderAttributeChanged(delta);
- case IArchiveNode.TYPE_ARCHIVE_FILESET:
- return handleFilesetAttributeChanged(delta);
- case IArchiveNode.TYPE_ARCHIVE:
- return handlePackageAttributeChanged(delta);
- }
- return false;
- }
-
- private boolean handleFolderAttributeChanged(IArchiveNodeDelta delta) {
- nodeRemoved(delta.getPreNode());
- nodeAdded(delta.getPostNode());
- return false;
- }
-
- private boolean handleFilesetAttributeChanged(IArchiveNodeDelta delta) {
- nodeRemoved(delta.getPreNode());
- nodeAdded(delta.getPostNode());
- return false;
- }
-
- private boolean handlePackageAttributeChanged(IArchiveNodeDelta delta) {
- nodeRemoved(delta.getPreNode());
- nodeAdded(delta.getPostNode());
- return false;
- }
-
-
-
-
- private void nodeAdded(IArchiveNode added) {
- if( added.getNodeType() == IArchiveNode.TYPE_ARCHIVE) {
- // create the package
- ModelTruezipBridge.createFile(added);
- } else if( added.getNodeType() == IArchiveNode.TYPE_ARCHIVE_FOLDER ) {
- // create hte folder
- ModelTruezipBridge.createFile(added);
- }
- IArchiveFileSet[] filesets = ModelUtil.findAllDescendentFilesets(added);
- for( int i = 0; i < filesets.length; i++ ) {
- ModelTruezipBridge.fullFilesetBuild(filesets[i]);
- IPath[] paths = filesets[i].findMatchingPaths();
- EventManager.filesUpdated(filesets[i].getRootArchive(), filesets[i], paths);
- }
- refreshLocal(added);
- }
-
-
- private void nodeRemoved(IArchiveNode removed) {
- if( removed.getNodeType() == IArchiveNode.TYPE_ARCHIVE) {
- ModelTruezipBridge.deleteArchive((IArchive)removed);
- refreshLocal(removed);
- return;
- } else if( removed.getNodeType() == IArchiveNode.TYPE_ARCHIVE_FOLDER ){
- IArchiveFileSet[] filesets = ModelUtil.findAllDescendentFilesets(((IArchiveFolder)removed));
- for( int i = 0; i < filesets.length; i++ ) {
- IPath[] removedPaths = ModelTruezipBridge.fullFilesetRemove(((IArchiveFileSet)removed), false);
- EventManager.filesRemoved(removedPaths, ((IArchiveFileSet)removed));
- }
- refreshLocal(removed);
- return;
- }
-
- IArchiveFileSet[] filesets = ModelUtil.findAllDescendentFilesets(removed);
- for( int i = 0; i < filesets.length; i++ ) {
- IPath[] removedPaths = ModelTruezipBridge.fullFilesetRemove(((IArchiveFileSet)removed), false);
- EventManager.filesRemoved(removedPaths, ((IArchiveFileSet)removed));
- }
- refreshLocal(removed);
- }
-
-
- // refresh the file tree structure
- private void refreshLocal(IArchiveNode node) {
- IArchive pack = node.getRootArchive();
- if( pack != null && pack.isDestinationInWorkspace() ) {
- // refresh the root package node
- IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
- IResource res = root.getContainerForLocation(pack.getDestinationPath());
- if( res != null ) {
- try {
- res.getParent().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- } catch( CoreException ce ) {
- }
- }
- }
-
- }
-}
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceExtensionManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceExtensionManager.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceExtensionManager.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,88 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ide.eclipse.archives.core.model.other.internal;
-
-import java.util.Collection;
-import java.util.Hashtable;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.InvalidRegistryObjectException;
-import org.eclipse.core.runtime.Platform;
-import org.jboss.ide.eclipse.archives.core.Trace;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveType;
-import org.jboss.ide.eclipse.archives.core.model.other.IExtensionManager;
-
-/**
- * This class will be responsible for loading extension points in the core.
- *
- * @author Rob Stryker (rob.stryker(a)redhat.com)
- *
- */
-public class WorkspaceExtensionManager implements IExtensionManager {
- public static final String ARCHIVE_TYPES_EXTENSION_ID = "org.jboss.ide.eclipse.archives.core.archiveTypes";
-
- private IExtension[] findExtension (String extensionId) {
- IExtensionRegistry registry = Platform.getExtensionRegistry();
- IExtensionPoint extensionPoint = registry.getExtensionPoint(extensionId);
- return extensionPoint.getExtensions();
- }
-
- private static Hashtable archiveTypes;
- private void loadPackageTypes () {
- archiveTypes = new Hashtable();
- IExtension[] extensions = findExtension(ARCHIVE_TYPES_EXTENSION_ID);
-
- for (int i = 0; i < extensions.length; i++) {
- IConfigurationElement elements[] = extensions[i].getConfigurationElements();
- for (int j = 0; j < elements.length; j++) {
- try {
- Object executable = elements[j].createExecutableExtension("class");
- IArchiveType type = (IArchiveType)executable;
- archiveTypes.put(type.getId(), type);
- } catch (InvalidRegistryObjectException e) {
- Trace.trace(WorkspaceExtensionManager.class, e);
- } catch( CoreException e ) {
- Trace.trace(WorkspaceExtensionManager.class, e);
- }
- }
- }
- }
-
- public IArchiveType getArchiveType (String packageType) {
- if (archiveTypes == null)
- loadPackageTypes();
- return (IArchiveType)archiveTypes.get(packageType);
- }
-
- public IArchiveType[] getArchiveTypes() {
- if( archiveTypes == null )
- loadPackageTypes();
- Collection c = archiveTypes.values();
- return (IArchiveType[]) c.toArray(new IArchiveType[c.size()]);
- }
-
-
-}
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,126 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ide.eclipse.archives.core.model.other.internal;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.QualifiedName;
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.core.runtime.preferences.DefaultScope;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.InstanceScope;
-import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin;
-import org.jboss.ide.eclipse.archives.core.model.other.IPreferenceManager;
-import org.osgi.service.prefs.BackingStoreException;
-
-
-/**
- * Sets default preferences for the plugin.
- * By default, the builder is enabled for all projects with archives.
- *
- * @author rstryker
- *
- */
-public class WorkspacePreferenceManager extends AbstractPreferenceInitializer implements IPreferenceManager {
- public static final String AUTOMATIC_BUILDER_ENABLED = "org.jboss.ide.eclipse.archives.core.automaticBuilderEnabled";
- public static final String PROJECT_SPECIFIC_PREFS = "org.jboss.ide.eclipse.archives.core.projectSpecificPreferencesEnabled";
-
- private static IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
- private static IResource getResource(IPath path) {
- if( path != null && workspaceRoot.getLocation().isPrefixOf(path) ) {
- String relative = path.toOSString().substring(workspaceRoot.getLocation().toOSString().length()+1);
- return workspaceRoot.getProject(relative);
- }
-
- return null;
- }
-
- public boolean isBuilderEnabled(IPath path) {
- QualifiedName name = new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, AUTOMATIC_BUILDER_ENABLED);
- IResource res = getResource(path);
- if( res != null && areProjectSpecificPrefsEnabled(res)) {
- try {
- if( res.getPersistentProperty(name) != null) {
- return Boolean.parseBoolean(res.getPersistentProperty(name));
- }
- } catch( CoreException ce ) {}
- }
- return new InstanceScope().getNode(ArchivesCorePlugin.PLUGIN_ID).getBoolean(AUTOMATIC_BUILDER_ENABLED, true);
- }
-
- public void setBuilderEnabled(IPath path, boolean value) {
- QualifiedName name = new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, AUTOMATIC_BUILDER_ENABLED);
- IResource resource = getResource(path);
- // if the resource is null or the resource has no preference val, use global val
- try {
- if( resource != null && resource.getPersistentProperty(name) != null) {
- resource.setPersistentProperty(name, new Boolean(value).toString());
- return;
- }
- } catch( CoreException ce ) {}
- IEclipsePreferences prefs = new InstanceScope().getNode(ArchivesCorePlugin.PLUGIN_ID);
- prefs.putBoolean(AUTOMATIC_BUILDER_ENABLED, value);
- try {
- prefs.flush();
- } catch (BackingStoreException e) {
- e.printStackTrace();
- }
- }
-
- public void initializeDefaultPreferences() {
- IEclipsePreferences prefs = new DefaultScope().getNode(ArchivesCorePlugin.PLUGIN_ID);
- prefs.putBoolean(AUTOMATIC_BUILDER_ENABLED, true);
- try {
- prefs.flush();
- } catch (BackingStoreException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
-
- public boolean areProjectSpecificPrefsEnabled(IPath path) {
- return areProjectSpecificPrefsEnabled(getResource(path));
- }
- public boolean areProjectSpecificPrefsEnabled(IResource resource) {
- QualifiedName name = new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, PROJECT_SPECIFIC_PREFS);
- try {
- if( resource != null && resource.getPersistentProperty(name) != null) {
- return Boolean.parseBoolean(resource.getPersistentProperty(name));
- }
- } catch( CoreException ce ) {}
- return false;
- }
-
- public void setProjectSpecificPrefsEnabled(IPath path, boolean value) {
- QualifiedName name = new QualifiedName(ArchivesCorePlugin.PLUGIN_ID, PROJECT_SPECIFIC_PREFS);
- IResource resource = getResource(path);
- try {
- if( resource != null) {
- resource.setPersistentProperty(name, new Boolean(value).toString());
- return;
- }
- } catch( CoreException ce ) {}
- }
-}
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVariables.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVariables.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVariables.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,29 +0,0 @@
-package org.jboss.ide.eclipse.archives.core.model.other.internal;
-
-import java.net.URL;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Platform;
-import org.jboss.ide.eclipse.archives.core.ArchivesCorePlugin;
-import org.jboss.ide.eclipse.archives.core.model.other.IRuntimeVariables;
-
-public class WorkspaceVariables implements IRuntimeVariables {
-
- public URL getBindingLog4j() {
- return ArchivesCorePlugin.getDefault().getBundle().getEntry("log4j.xml");
- }
-
- public URL getBindingSchema() {
- return ArchivesCorePlugin.getDefault().getBundle().getEntry("xml/packages.xsd");
- }
-
- public IPath getWorkspacePath() {
- return ResourcesPlugin.getWorkspace().getRoot().getLocation();
- }
-
- public boolean isDebugging(String option) {
- return ArchivesCorePlugin.getDefault().isDebugging()
- && "true".equalsIgnoreCase(Platform.getDebugOption(option));
- }
-}
Deleted: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/JARArchiveType.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/JARArchiveType.java 2007-05-21 23:56:43 UTC (rev 2051)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/JARArchiveType.java 2007-05-21 23:57:09 UTC (rev 2052)
@@ -1,74 +0,0 @@
-package org.jboss.ide.eclipse.archives.core.model.types;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.jboss.ide.eclipse.archives.core.Trace;
-import org.jboss.ide.eclipse.archives.core.model.IArchive;
-import org.jboss.ide.eclipse.archives.core.model.IArchiveFileSet;
-import org.jboss.ide.eclipse.archives.core.model.internal.ArchiveFileSetImpl;
-import org.jboss.ide.eclipse.archives.core.model.internal.ArchiveImpl;
-
-/**
- * The default JAR package type will simply jar-up all the classes in a java project's output directory, and place it in the top-level of the project.
- * The name of the resulting JAR will be the project's name followed by a ".jar" extension.
- * @author Marshall
- */
-public class JARArchiveType extends AbstractArchiveType {
-
- public static final String TYPE_ID = "jar";
-
- public IArchive createDefaultConfiguration(IProject project, IProgressMonitor monitor) {
- //IPackageType t = this;
- Assert.isNotNull(project);
-
- IJavaProject javaProject = JavaCore.create(project);
- Assert.isNotNull(javaProject);
-
- if (monitor == null) monitor = new NullProgressMonitor();
-
- monitor.beginTask("Creating default JAR configuration for java project \"" + project.getName() + "\"", 2);
-
- IPath outputPath;
- try {
- outputPath = javaProject.getOutputLocation();
- } catch (JavaModelException e) {
- Trace.trace(JARArchiveType.class, e);
- return null;
- }
-
- outputPath = outputPath.removeFirstSegments(1);
- IContainer outputContainer = project.getFolder(outputPath);
-
- IArchive jar = new ArchiveImpl();
-
- jar.setDestinationPath(project.getLocation());
- jar.setInWorkspace(true);
- jar.setExploded(false);
- jar.setName(project.getName() + ".jar");
- jar.setArchiveType(this);
-
- IArchiveFileSet classes = new ArchiveFileSetImpl();
- classes.setIncludesPattern("**/*");
- classes.setSourcePath(outputContainer.getFullPath());
- classes.setInWorkspace(true);
-
- jar.addChild(classes);
-
- monitor.worked(1);
- monitor.done();
-
- return jar;
- }
-
- // do nothing
- public IArchive fillDefaultConfiguration(IProject project, IArchive topLevel, IProgressMonitor monitor) {
- return null;
- }
-}
17 years, 7 months
JBoss Tools SVN: r2051 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:56:43 -0400 (Mon, 21 May 2007)
New Revision: 2051
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/IRuntimeVariables.java
Log:
slightly changed API
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/IRuntimeVariables.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/IRuntimeVariables.java 2007-05-21 23:56:22 UTC (rev 2050)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/IRuntimeVariables.java 2007-05-21 23:56:43 UTC (rev 2051)
@@ -12,7 +12,9 @@
* @return
*/
public boolean isDebugging(String option);
- public IPath getWorkspacePath();
+ public IPath getProjectPath(String projectName);
+
+// public IPath getWorkspacePath();
public URL getBindingSchema();
public URL getBindingLog4j();
}
17 years, 7 months
JBoss Tools SVN: r2050 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:56:22 -0400 (Mon, 21 May 2007)
New Revision: 2050
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
Log:
added a new utility method "workspacePathToAbsolutePath"
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-05-21 23:55:30 UTC (rev 2049)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-05-21 23:56:22 UTC (rev 2050)
@@ -26,6 +26,7 @@
import java.util.Collections;
import org.eclipse.core.runtime.IPath;
+import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.model.ArchivesModel;
import org.jboss.ide.eclipse.archives.core.model.IArchive;
import org.jboss.ide.eclipse.archives.core.model.IArchiveFileSet;
@@ -190,4 +191,12 @@
return lastConcrete;
}
+
+ public static IPath workspacePathToAbsolutePath (IPath workspacePath)
+ {
+ String projectName = workspacePath.segment(0);
+ IPath projectPath = ArchivesCore.getInstance().getVariables().getProjectPath(projectName);
+
+ return projectPath.append(workspacePath.removeFirstSegments(1));
+ }
}
17 years, 7 months
JBoss Tools SVN: r2049 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:55:30 -0400 (Mon, 21 May 2007)
New Revision: 2049
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/AbstractArchiveType.java
Log:
removed unneeded "abstract" definition
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/AbstractArchiveType.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/AbstractArchiveType.java 2007-05-21 23:55:12 UTC (rev 2048)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/types/AbstractArchiveType.java 2007-05-21 23:55:30 UTC (rev 2049)
@@ -21,12 +21,9 @@
*/
package org.jboss.ide.eclipse.archives.core.model.types;
-import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.jboss.ide.eclipse.archives.core.model.IArchive;
import org.jboss.ide.eclipse.archives.core.model.IArchiveType;
/**
@@ -46,7 +43,4 @@
public String getLabel() {
return element.getAttribute("label");
}
-
- public abstract IArchive createDefaultConfiguration(IProject project, IProgressMonitor monitor);
-
}
17 years, 7 months
JBoss Tools SVN: r2048 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2007-05-21 19:55:12 -0400 (Mon, 21 May 2007)
New Revision: 2048
Added:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneExtensionManager.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandalonePreferenceManager.java
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneVariables.java
Log:
"standalone" implementations of archives core specific interfaces
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneExtensionManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneExtensionManager.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneExtensionManager.java 2007-05-21 23:55:12 UTC (rev 2048)
@@ -0,0 +1,35 @@
+package org.jboss.ide.eclipse.archives.core.model.other.internal;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.jboss.ide.eclipse.archives.core.model.IArchive;
+import org.jboss.ide.eclipse.archives.core.model.IArchiveType;
+import org.jboss.ide.eclipse.archives.core.model.other.IExtensionManager;
+
+public class StandaloneExtensionManager implements IExtensionManager {
+
+ public IArchiveType getArchiveType(String id) {
+ final String typeId = id;
+
+ return new IArchiveType () {
+ public String getId() {
+ return typeId;
+ }
+ public String getLabel() {
+ return typeId;
+ }
+ public IArchive createDefaultConfiguration(String projectName, IProgressMonitor monitor) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+ public IArchive fillDefaultConfiguration(String projectName, IArchive topLevel, IProgressMonitor monitor) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+ };
+ }
+
+ public IArchiveType[] getArchiveTypes() {
+ return new IArchiveType[0];
+ }
+
+}
Added: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandalonePreferenceManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandalonePreferenceManager.java (rev 0)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandalonePreferenceManager.java 2007-05-21 23:55:12 UTC (rev 2048)
@@ -0,0 +1,28 @@
+package org.jboss.ide.eclipse.archives.core.model.other.internal;
+
+import org.eclipse.core.runtime.IPath;
+import org.jboss.ide.eclipse.archives.core.model.other.IPreferenceManager;
+
+public class StandalonePreferenceManager implements IPreferenceManager {
+
+ public boolean areProjectSpecificPrefsEnabled(IPath path) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isBuilderEnabled(IPath path) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void setBuilderEnabled(IPath path, boolean val) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setProjectSpecificPrefsEnabled(IPath path, boolean val) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneVariables.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneVariables.java 2007-05-21 23:54:34 UTC (rev 2047)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/other/internal/StandaloneVariables.java 2007-05-21 23:55:12 UTC (rev 2048)
@@ -3,22 +3,26 @@
import java.net.URL;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
import org.jboss.ide.eclipse.archives.core.model.other.IRuntimeVariables;
public class StandaloneVariables implements IRuntimeVariables {
public URL getBindingLog4j() {
- // TODO Auto-generated method stub
- return null;
+ return getClass().getClassLoader().getResource("log4j.xml");
}
public URL getBindingSchema() {
- // TODO Auto-generated method stub
- return null;
+ return getClass().getClassLoader().getResource("packages.xsd");
}
- public IPath getWorkspacePath() {
- // TODO Auto-generated method stub
+ public IPath getProjectPath(String projectName) {
+ projectName = projectName.replace(' ', '_');
+
+ String projectPath = System.getProperty(projectName + ".dir");
+ if (projectPath != null)
+ return new Path(projectPath);
+
return null;
}
17 years, 7 months